﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkClass.aspx.cs" Inherits="WMS6.Web.Configuration.WorkClass" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>WorkClass</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }

        function newLocSite() {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "WorkClass.aspx?from=" + escape(from);
            return false;
        }

        function confirmMsg(code) {
            if (code == "C001") {
                if (confirm('<%=GetGlobalMsgResource("C001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }

        }
   
    </script>

</head>
<body>
    <form id="F2661" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblHeader" runat="server" CssClass="label_header" Text="作业班次" meta:resourcekey="lblHeader"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            Enabled="False" CausesValidation="False" OnClick="btnGoBack_Click" meta:resourcekey="btnGoBack" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnNew %>"
                            Enabled="False" AccessKey="n" OnClientClick="newLocSite(); return false;" meta:resourcekey="btnNew" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnSave %>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" meta:resourcekey="btnSave" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnDelete %>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" meta:resourcekey="btnDelete" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnCopy %>"
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" meta:resourcekey="btnCopy" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="imgL1">
                        </div>
                    </div>
                    <div class="tabLabelCont tabCur" id="div1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="imgR1">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="800px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <asp:Label ID="lblWorkClassID" runat="server" CssClass="label" Text="作业班次代码" meta:resourcekey="lblWorkClassID"></asp:Label><font
                                        class="must_input">*</font>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtWorkClassID" runat="server" CssClass="textbox" meta:resourcekey="txtWorkClassID" MaxLength="100"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="描述" meta:resourcekey="lblDescr"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox" meta:resourcekey="txtDescr" MaxLength="300"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="360px" colspan="2">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtRemark" MaxLength="300"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chbIsActive" runat="server" CssClass="checkbox" Text="启用" Checked="True"
                                        meta:resourcekey="chbIsActive" />
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnFrom" runat="server" />
    </div>
    </form>
</body>
</html>
